/* Battleground window */

#window-battle .container {
	width: 1040px;
	position: relative;
	margin: 40px auto 0 auto;
}

#window-battle .toolbar {
	margin: 4px auto;
	width: 100%;
}

#window-battle .battleground {
	width: 990px; 
	line-height: 1.3;
	height: 520px;
}

#window-battle .attack,
#window-battle .defense {
	font-size: 14px;
	position: absolute;
	top: -32px;
	background-color: $white;
	border-radius: 20px;
	padding: 4px 10px;
	color: $black;
	z-index: 2;
}

#window-battle .attack {
	left: 200px;
}

#window-battle .defense {
	right: 200px;
}

#window-battle .status {
	width: 480px;
	height: 60px;
	position: absolute;
	bottom: -60px;
	left: 22%;
	border: 1px solid $border;
	overflow: auto;
	background-color: $white;
	padding: 20px;
}

#window-battle .battleground .cell img {
	position: absolute;
	top: 6px;
	left: -8px;
	transform: rotate(90deg);
	display: block;
	z-index: 1;
}

#window-battle .battleground .cell .amount {
	color: $white;
	position: absolute;
	font-size: 10px;
	right: 16px;
	bottom: 2px;
	background-color: $black;
	border-radius: 100%;
	transform: rotate(90deg);
	padding: 4px;
	z-index: 2;
}

#window-battle .turns {
	font-size: 16px;
	position: absolute;
	top: -36px;
	right: 49%;
	background-color: $white;
	border-radius: 100%;
	padding: 6px;
	color: $black;
	z-index: 2;
}

#window-battle .status p {
	color: $anchor-fg-dark;
	font-size: 10px;
}

.window .toolbar a {
	border-radius: 3px;
	padding: 10px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
}

#window-battle .battleground .cell .moves {
	width: 10px;
	height: 10px;
	display: block;
	border-radius: 100%;
	background-color: #c53636;
	position: absolute;
	top: 42px;
	box-shadow: 0 0 2px $box-shadow;
	right: 0;
	z-index:2;
}

#window-battle .battleground .cell .moves.has {
	background-color: #298719;
}

#window-battle .battleground ol {
	margin-left: 20px;
	padding: 0;
}

#window-battle .battleground ol.even {
	position: relative;
	left: 1.95em;
}

#window-battle .battleground ol.odd {
	position: relative;
	margin-top: -5.6%;
	margin-bottom: -5.6%;
}

#window-battle .battleground .cell {
	position: relative;
	margin: 1em auto;
	width: 2em;
	height: 3.6em;
	border-radius: 20em/1em;
	background: transparent;
	transform: rotate(-90deg);
	display: inline-block;
	opacity: 0.8;
	margin-right: 1.94em;
}

#window-battle .battleground .cell:before,
#window-battle .battleground .cell:after {
	position: absolute;
	width: inherit;
	height: inherit;
	border-radius: inherit;
	background: inherit;
	content: '';
}

#window-battle .battleground .cell:before {
	transform: rotate(60deg);
}

#window-battle .battleground .cell:after {
	transform: rotate(-60deg);
}

#window-battle .battleground .cell.empty,
#window-battle .battleground .cell.selected,
#window-battle .battleground .cell:hover {
	background-color: $white;
}

#window-battle .battleground .cell.empty {
	opacity: 0.2;
}

#window-battle .battleground .cell.selected {
	opacity: 1;
}

#window-battle .battleground .cell:hover {
	opacity: 1;
	cursor: pointer;
}

#window-battle .battleground .cell.canattack {
	background-color: #fe9466;
	opacity: 0.4 !important;
}

#window-battle .battleground .cell.canmove {
	background-color: #80bc50;
	opacity: 0.4 !important;
}
